﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>无标题文档</title>
	<script type="text/javascript">
		if (!document.cookie.match(/blackbird=/)) {
			document.cookie = 'blackbird={pos:0,size:0,load:true};';
		}
	</script>
	<script src="../../Debug/blackbird.js" type="text/javascript" charset="utf-8"></script>
	<link type="text/css" rel="Stylesheet" href="../../Debug/blackbird.css" />
	<script type="text/javascript">
		/**
		* 函数声明（The function declaration）函数赋值表达式（The function expression）两者解析的时间不同
		*
		* 下面示例testA会报错，testB的示例不会报错。
		**/

		//var pA = testA();
		//log.info(pA);

		//var testA = function () {
		//	return 'aaaa';
		//}

		var pB = function () {
			return testB();
		}

		var testB = function () {
			return 'bbbb';
		}
		log.info(pB());
	</script>
</head>
<body>
</body>
</html>
